package com.example.badyloans.servlet;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.badyloans.pojo.TSystemDictionary;
import com.example.badyloans.dao.TSystemDictionaryMapper;
import com.example.badyloans.servlet.TSystemDictionaryService;

import java.util.List;

@Service
public class TSystemDictionaryServiceImpl implements TSystemDictionaryService{

    @Resource
    private TSystemDictionaryMapper tSystemDictionaryMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tSystemDictionaryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(TSystemDictionary record) {
        return tSystemDictionaryMapper.insertSelective(record);
    }

    @Override
    public TSystemDictionary selectByPrimaryKey(Integer id) {
        return tSystemDictionaryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TSystemDictionary record) {
        return tSystemDictionaryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<TSystemDictionary> selectquan(String keyword,int currentPageNo,
                                              int pageSize) {
        return tSystemDictionaryMapper.selectquan(keyword,currentPageNo,pageSize);
    }

    @Override
    public List<TSystemDictionary> selectchaxunquanbu() {
        return tSystemDictionaryMapper.selectchaxunquanbu();
    }

    @Override
    public int fenyesum(String keyword) {
        return tSystemDictionaryMapper.fenyesum(keyword);
    }

}
